<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<script src="/js/layui.js"></script>
<link rel="shortcut icon" href="favicon.ico">
<link href="/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="/css/font-awesome.css?v=4.4.0" rel="stylesheet">
<link href="/css/animate.css" rel="stylesheet">
<link href="/css/layui.css" rel="stylesheet">
<link href="/css/style.css?v=4.1.0" rel="stylesheet">
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="id" name="id" th:value="${car.id}"  type="hidden">
							<div class="form-group">	
								<label class="col-sm-3 control-label">车名：</label>
								<div class="col-sm-8">
									<input id="carName" name="carName" th:value="${car.carName}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">车价格：</label>
								<div class="col-sm-8">
									<input id="carPrice" name="carPrice" th:value="${car.carPrice}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">车牌号：</label>
								<div class="col-sm-8">
									<input id="carNo" name="carNo" th:value="${car.carNo}" class="form-control" type="text">
								</div>
							</div>
							<!--							<div class="form-group">
								<label class="col-sm-3 control-label">录入时间：</label>
								<div class="col-sm-8">
									<input id="inTime" name="inTime" th:value="${car.inTime}" class="form-control" type="text">
								</div>
							</div>-->
														<div class="form-group">	
								<label class="col-sm-3 control-label">状态：</label>
								<div class="col-sm-8">
									<label class="radio-inline">
										<input th:field="*{car.state}" type="radio" name="state" value="正常" />
										正常
									</label>
									<label class="radio-inline">
										<input th:field="*{car.state}" type="radio" name="state" value="禁用" />
										禁用
									</label>
									<!--<input id="state" name="state" th:value="${car.state}" class="form-control" type="text">-->
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">座位数：</label>
								<div class="col-sm-8">
									<input id="carSite" name="carSite" th:value="${car.carSite}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">租赁价格（日）：</label>
								<div class="col-sm-8">
									<input id="rentPrice" name="rentPrice" th:value="${car.rentPrice}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<button type="button" class="layui-btn col-sm-3" id="uploadfile">上传照片</button>
								<div class="layui-upload-list col-sm-8" style="width: 60%;">
									<img class="layui-upload-img " id="demo1" style="width: 60%;vertical-align:middle;float: right">
									<p id="demoText"></p>
								</div>
								<input type="hidden" id="srcPictrue" th:value="${car.src}">
							</div>
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/work/car/edit.js">
	</script>
</body>
</html>
